import request from '@/sheep/request';

const announcementApi = {
	// 平台公告
	getAnnouncement: (data) => {
	  return request({
	    url: '/member/auth/app-platformAnnouncements',
	    method: 'GET',
		data,
	    custom: {
	      showLoading: true,
	      auth: true,
	    },
	  });
	},
	// 消息中心
	getCenterList: () => {
	  return request({
	    url: '/member/auth/app-messageQueries',
	    method: 'GET',
	    custom: {
	      showLoading: true,
	      auth: true,
	    },
	  });
	},
	// 消息详情
	getAnnouncementDetail: (id) => {
	  return request({
	    url: `/member/auth/app-messageDetails/${id}`,
	    method: 'GET',
	    custom: {
	      showLoading: true,
	      auth: true,
	    },
	  });
	}
}

export default announcementApi;